Developer Documentation

QuickTime 4 API Documentation

Programming With QuickTime VR

| Previous | Chapter Contents | Chapter Top | Next |

VR World Header Atom Structure

The VR world header atom is a leaf atom. Its atom type is kQTVRWorldHeaderAtomType ( 'vrsc' ). It contains the name of the scene and the default node ID to be used when the file is first opened as well as fields reserved for future use.

The structure of a VR world header atom is defined by the VRWorldHeaderAtom data type:

typedef struct VRWorldHeaderAtom {
    UInt16                              majorVersion;
    UInt16                              minorVersion;
    QTAtomID                            nameAtomID;
    UInt32                              defaultNodeID;
    UInt32                              vrWorldFlags;
    UInt32                              reserved1;
    UInt32                              reserved2;
} VRWorldHeaderAtom, *VRWorldHeaderAtomPtr;
majorVersion
The major version number of the file format.
minorVersion
The minor version number of the file format.
nameAtomID
The ID of the string atom that contains the name of the scene. That atom should be a sibling of the VR world header atom. The value of this field is 0 if no name string atom exists.
defaultNodeID
The ID of the default node (that is, the node to be displayed when the file is first opened).
vrWorldFlags
A set of flags for the VR world. Currently, this field is unused.
reserved1
Reserved. This field must be 0.
reserved2
Reserved. This field must be 0.

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |